#ifndef PRINT_H
#define PRINT_H

#include <QMainWindow>
#include <QtGui>
#include <QSerialPort>

class PRINT : public QMainWindow
{
    Q_OBJECT
public:
    explicit PRINT(QWidget *parent = 0);
    bool isOpen(){return serial->isOpen();}

signals:

public slots:
//    void select(int i);
    void select(QStringList);

private slots:
    void hanzitest();
    QByteArray change(QString a,int style);
    void print(unsigned char ch);
    void getTime();
    void timesplit(QString );
    void openserial();

private:
    QString cstime,newtime;
    QString bh,xinh,bb,jd,glys,edfh,xxfh,jdjg;
    QString fhed[10];
    QString fhxx[8];
    QByteArray year,mon,dd,hour,min,second;
    QSerialPort *serial;
};

#endif // PRINT_H
